package com.py.credit.service.impl;

import com.py.credit.dao.LhjcStepLogDao;
import com.py.credit.entity.LhjcStepLog;
import com.py.credit.service.LhjcStepLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LhjcStepLogServiceImpl implements LhjcStepLogService {

    @Autowired
    private LhjcStepLogDao lhjcStepLogDao;

    @Override
    public void add(String batchId, String logDesc) {
        lhjcStepLogDao.insert(batchId, logDesc);
    }

    @Override
    public List<LhjcStepLog> selectList(String batchId) {
        return lhjcStepLogDao.selectList(batchId);
    }
}
